package com.example.springmvcproject.Vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CreditUpVo {
    @NotNull
    private Integer creditId;
    @NotNull
    private Long creditNum;
    @NotNull
    @Range(min = 0,max = 1,message = "仅允许输入0，1")
    private Integer creditStatus;
}
